package org.example.domain.model.entity.url.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class UrlShortenerUpdateVo {
    @Schema(description = "原始链接")
    private String originUrl;

    @Schema(description = "新链接")
    private String newOriginUrl;

    @Schema(description = "原始短链接")
    private String fullShortUrl;

    @Schema(description = "新短链接")
    private String newFullShortUrl;

    @Schema(description = "短链接")
    private String shortUri;

    @Schema(description = "原始分组标识")
    private String originGid;

    @Schema(description = "新分组标识")
    private String gid;

    @Schema(description = "有效期类型 0：永久有效 1：自定义")
    private Integer validDateType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @Schema(description = "有效期")
    private Date validDate;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "删除标识, true:已删除, false:未删除")
    private Boolean deleteIdentity;

    @Schema(description = "删除时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date delTime;

}
